const { Schema, default: mongoose } = require("mongoose");
const baseModel = require("./baseModel");

module.exports = new Schema({
  ...baseModel,
  user: {
    type: mongoose.Schema.Types.ObjectId,
    ref: "User",
    required: true,
  },
  title: {
    type: String,
    required: true,
  },
  descrption: {
    type: String,
    required: false,
  },
  path: {
    type: String,
    required: true,
  },
});
